{% extends "global/Page.html" %}
{% load otree %}

{% block title %}第五轮{% endblock %}

{% block content %}
    <div class="card bg-light m-3">
        <div class="card-body">
            <h3>
                游戏介绍
            </h3>
            {#    下面二个标签显示自己和对方的身份！#}
            <p>您的身份是： <span style="color: red">
                    {% if player.id_in_subsession == player.session.vars.r1 %}
                        红组
                    {% endif %}
                {% if player.id_in_subsession == player.session.vars.r2 %}
                    红组
                {% endif %}
                {% if player.id_in_subsession == player.session.vars.r3 %}
                    红组
                {% endif %}
                {% if player.id_in_subsession == player.session.vars.r4 %}
                    红组
                {% endif %}
                {% if player.id_in_subsession == player.session.vars.r5 %}
                    红组
                {% endif %}
                {% if player.id_in_subsession == player.session.vars.r6 %}
                    红组
                {% endif %}
                </span>
                <span style="color: blue">
                    {% if player.id_in_subsession == player.session.vars.b1 %}
                        蓝组
                    {% endif %}
                    {% if player.id_in_subsession == player.session.vars.b2 %}
                        蓝组
                    {% endif %}
                    {% if player.id_in_subsession == player.session.vars.b3 %}
                        蓝组
                    {% endif %}
                    {% if player.id_in_subsession == player.session.vars.b4 %}
                        蓝组
                    {% endif %}
                    {% if player.id_in_subsession == player.session.vars.b5 %}
                        蓝组
                    {% endif %}
                    {% if player.id_in_subsession == player.session.vars.b6 %}
                        蓝组
                    {% endif %}
                </span>
                <span style="color:green;">
                                    {% if player.id_in_subsession == player.session.vars.g1 %}
                                        绿组
                                    {% endif %}
                    {% if player.id_in_subsession == player.session.vars.g2 %}
                        绿组
                    {% endif %}
                    {% if player.id_in_subsession == player.session.vars.g3 %}
                        绿组
                    {% endif %}
                    {% if player.id_in_subsession == player.session.vars.g4 %}
                        绿组
                    {% endif %}
                    {% if player.id_in_subsession == player.session.vars.g5 %}
                        绿组
                    {% endif %}
                    {% if player.id_in_subsession == player.session.vars.g6 %}
                        绿组
                    {% endif %}
                </span></p>
            <p>分钱人A的身份是:
                {% for p in player.get_others_in_group %} {# 没想到怎么提取 用for来提取集合的列表了 #}

                    {#                根据索引值 player.get_others_in_group.0就是数组的第一个值 1是第二个#}
                    {% if  player.get_others_in_group.0 == p %}
                        <span style="color: red">{% if  p.id_in_subsession  == player.session.vars.r1 %}
                            红组
                        {% endif %}
                            {% if p.id_in_subsession == player.session.vars.r2 %}
                                红组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.r3 %}
                                红组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.r4 %}
                                红组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.r5 %}
                                红组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.r6 %}
                                红组
                            {% endif %}</span>
                        <span style="color:blue;">                    {% if p.id_in_subsession == player.session.vars.b1 %}
                            蓝组
                        {% endif %}
                            {% if p.id_in_subsession == player.session.vars.b2 %}
                                蓝组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.b3 %}
                                蓝组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.b4 %}
                                蓝组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.b5 %}
                                蓝组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.b6 %}
                                蓝组
                            {% endif %}</span>
                        <span style="color:green;">                    {% if p.id_in_subsession == player.session.vars.g1 %}
                            绿组
                        {% endif %}
                            {% if p.id_in_subsession == player.session.vars.g2 %}
                                绿组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.g3 %}
                                绿组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.g4 %}
                                绿组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.g5 %}
                                绿组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.g6 %}
                                绿组
                            {% endif %}</span>
                        和
                    {% endif %}
                {% endfor %}
                &nbsp&nbsp&nbsp&nbsp分钱人B的身份是:
                {% for p in player.get_others_in_group %}
                    {% if  player.get_others_in_group.1 == p %}
                        <span style="color: red">{% if  p.id_in_subsession  == player.session.vars.r1 %}
                            红组
                        {% endif %}
                            {% if p.id_in_subsession == player.session.vars.r2 %}
                                红组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.r3 %}
                                红组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.r4 %}
                                红组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.r5 %}
                                红组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.r6 %}
                                红组
                            {% endif %}</span>
                        <span style="color:blue;">                    {% if p.id_in_subsession == player.session.vars.b1 %}
                            蓝组
                        {% endif %}
                            {% if p.id_in_subsession == player.session.vars.b2 %}
                                蓝组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.b3 %}
                                蓝组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.b4 %}
                                蓝组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.b5 %}
                                蓝组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.b6 %}
                                蓝组
                            {% endif %}</span>
                        <span style="color:green;">                    {% if p.id_in_subsession == player.session.vars.g1 %}
                            绿组
                        {% endif %}
                            {% if p.id_in_subsession == player.session.vars.g2 %}
                                绿组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.g3 %}
                                绿组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.g4 %}
                                绿组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.g5 %}
                                绿组
                            {% endif %}
                            {% if p.id_in_subsession == player.session.vars.g6 %}
                                绿组
                            {% endif %}</span>
                    {% endif %}
                {% endfor %}
            </p>
            <p>上一轮的任务已经结束了，接下来是新一轮的任务。请注意在这一轮中环境<b>发生的变化</b>。
            </p>
            <p>你还是要和两个人竞争游戏币，
                同样的如果没有满足分钱游戏的规则，在进入下一次分钱之前游戏币还是会<b>减少6</b></p>
            <p>另外</p>
            <p>希望您<b>注意本轮游戏的变化</b></p>
            <p>①你提议可用的<b>时间是不确定的</b>，时间大大减少，预计会在<b>5到10秒</b>之间，并且这个倒计时<b>并不会给您显示出来</b>，希望您及时做出决策，以免因未决策进入下一次分钱而造成个人的损失。</p>
            <p>②和你竞争游戏币的两个人重新随机匹配了，不再是之前分钱游戏中的对手。</p>
            <p>③如果您选择自己拿奖金，可以点击退出游戏。其他人会获得0，你获得64。</p>
            <p style="text-align: center">游戏流程</p>
            <img src="{% static 'picture/introduct.jpg' %}" width="852" height="1186"/>
        </div>
    </div>
    {% next_button %}
{% endblock %}
